package com.yanmaohu.nikita.data.expression;

import com.yanmaohu.nikita.data.operator.ArithmeticOperator;

/**
 * @author Bright Lee
 */
public final class ArithmeticExpression extends Expression {

    private final ArithmeticOperator arithmeticOperator;
    private final Expression a;
    private final Expression b;

    public ArithmeticExpression(int beginIndex, int endIndex, ArithmeticOperator arithmeticOperator, Expression a, Expression b) {
        super(beginIndex, endIndex);
        this.arithmeticOperator = arithmeticOperator;
        this.a = a;
        this.b = b;
    }

    public ArithmeticOperator getArithmeticOperator() {
        return arithmeticOperator;
    }

    public Expression getA() {
        return a;
    }

    public Expression getB() {
        return b;
    }

}
